package com.dcy.daily.rabbitMQ;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author duanchunyu
 * @version 1.0.0
 * @createTime 2021年07月22日 09:54
 */
@Component
public class MyBean1 {


    public static final Logger logger = LoggerFactory.getLogger(MyBean1.class);

    @RabbitListener(queues = "task_queue")
    public void processMessage(String content) {
        logger.info(content);
    }
}
